<?php (!defined('IN_SYSTEM') || !defined('ADMIN_PRE')) && exit('Access Denied!');?>
{admintemplate header}
<div class="box">
	<div class="heading">
	<h1>积分策略</h1>
	<div class="buttons">
    <a href="{url('admin.php?m=point')}">基本设置</a>
    <a href="{url('admin.php?m=point&f=setting')}">积分策略</a>
    <a href="{url('admin.php?m=point&f=log')}">积分记录</a>
	</div>
	</div>
	<div class="main">


		<form name="save" method="post" action="?m=point" autocomplete="off">
		<input type="hidden" name="f" value="edit" />
		<input type="hidden" name="pointsubmit" value="true" />
		<input type="hidden" name="rid" value="{$rid}" />
		<table width="100%" cellspacing="0" class="tb">
		<tr><th  width="150">{$point['detail']}</th><th></th></tr>
		<tr><td align="right">周期：</td><td>
		<input type="radio"  value="1" {if $point['cycletype']==1}checked=""{/if} name="point[cycletype]" class="radio">一次
		<input type="radio"  value="2" {if $point['cycletype']==2}checked=""{/if} name="point[cycletype]" class="radio">每天
		<input type="radio"  value="3" {if $point['cycletype']==3}checked=""{/if} name="point[cycletype]" class="radio">每周
		<input type="radio"  value="4" {if $point['cycletype']==4}checked=""{/if} name="point[cycletype]" class="radio">每月</td></tr>
		<tr><td align="right">周期内最多奖励次数：</td>
		<td>
		<input type="text" value="{$point['cycletime']}" name="point[cycletime]" class="input" size="50" /><span>0为不限次数</span></td>
		</tr>
		{loop $points $k $p}
		{if $p['use']}
		<tr><td align="right">{$p['title']}({$k})：</td>
		<td>
		<input type="text" value="{$point[$k]}" name="point[{$k}]" class="input" size="50" /></td>
		</tr>
		{/if}
		{/loop}
		<tr class="bg2"><td></td><td ><input type="submit" class="button" value="保存" /></td></tr>
		</table>
		</form>




	</div>
</div>
{admintemplate footer}